<template>
	<div class="login">
		<form>
			用户名: <input type="text"/>
			密码： <input type="password"/>
			<input type="submit" value="登录" @click.prevent="sub"/>
		</form>
	</div>
</template>

<script>
	export default{
		data(){
			return {
				username:"",
				psw:""
			}
		},
		methods:{
			sub(){
				
				console.log(this.$route.query.redirect)
				localStorage.setItem('islogin','gg')
				this.$router.push({
					path:this.$route.query.redirect
				})
			}
		}
	}
</script>

<style>
	.login{
		padding-top: 160px;
	}
</style>